package com.wmx.main;

import com.wmx.entity.Couple;

import java.util.concurrent.FutureTask;

/**
 * @author:wmx 2025-03-12 11:21
 * 1、功能:
 * 2、参数{
 * <p>
 * <p>
 * }
 **/
public class entrance {
    public static void main(String[] args) throws InterruptedException {

            Couple man = new Couple(3000.00,"存折","男");
            Couple man1 = new Couple(1000.00,"银联卡","女");
            FutureTask<String> futureTask1 = new FutureTask<>(man);
            FutureTask<String> futureTask2 = new FutureTask<>(man1);
            Thread thread1 = new Thread(futureTask1);
            Thread thread2 = new Thread(futureTask2);

            thread1.start();
            thread2.start();

    }
}
